package me.zk.practice1.proxy;

import java.lang.reflect.Proxy;

/**
 * @Author: zhang kai
 * @Date: 2022/01/04
 * @Description:
 */
public class DemoInstance implements TestInterface {
    public static void main(String[] args) {
        DemoInstance object = (DemoInstance)Proxy.newProxyInstance(DemoInstance.class.getClassLoader(), new Class[]{TestInterface.class},new JDKInvocationHandler());
        System.out.println(object);
    }
}
